package com.example.threaddemo.创建线程;

/**
 * @Description: 创建线程的第三种方法
 * @Param:
 * @return:
 * @Author: mastermind
 * @Date: 2020-09-16 10:17
 */
public class Demo2 implements Runnable {

    @Override
    public void run() {

        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.err.println("324324231");
    }
}


class bbb {

    public static void main(String[] args) {

        Demo2 demo2 = new Demo2();
        Thread thread = new Thread(demo2);

        thread.start();
        System.err.println("asasas");

    }


}